package com.example.light.system.service.impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.light.system.common.Result;
import com.example.light.system.dto.allUserList;
import com.example.light.system.entity.user;
import com.example.light.system.vo.insertUser;
import com.example.light.system.vo.searchUser;

import java.util.ArrayList;

public interface IUserService extends IService<user> {
    //查询所有用户
    Result<ArrayList<allUserList>> searchAllUser();

    // 新增用户
    Result<String> insertUser(insertUser insertUser);

    // 删除用户
    Result<String> deleteUser(String userAccount);

    // 编辑用户
    Result<String> editUser(insertUser insertUser);

    // 查询用户
    Result<ArrayList<allUserList>> searchUser(searchUser searchUser);
}
